// The core optimisations file
#include "stdafx.h"
#include "optimisations.h"
#include <povray.h>

static bool optimisation1 = false;
static bool optimisation2 = false;
static bool optimisation3 = false;
static bool vicom = false;
static int quality = 1;
static bool trace = false;

static void reset()
{
	optimisation1 = false;
	optimisation2 = false;
	optimisation3 = false;
	vicom = false;
	quality = 1;
	trace = false;
}

//information required in drawing routine
PixelRender getPixel(){
	PixelRender p;
	p.x = 0;
	p.y = 0;
	p.quality = 0;
	return p;
}
int getQuality()
{
	return quality;
}
void setQuality(int x)
{
	quality = x;
}


//optimisation
static bool getOptimsation1()
{
	return optimisation1;
}
static bool getOptimsation2()
{
	return optimisation2;
}
static bool getOptimsation3()
{
	return optimisation3;
}
static void setOptimsation1(bool x)
{
	optimisation1 = x;
}
static void setOptimsation2(bool x)
{
	optimisation2 = x;
}
static void setOptimsation3(bool x)
{
	optimisation3 = x;
}


// vicom controls
static bool getVicom()
{
	return vicom;
}
static void setVicom(bool x)
{
	vicom = x;
}

// setup controls
static void startTrace()
{
	trace = true;
}
static void stopTrace()
{
	trace = false;
}
static bool getTrace()
{
	return trace;
}